package filedemo;

public class Main {
    public static void main(String[] args) {
        try {
            java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter("runoob.txt"));
            out.write("菜鸟教程");
            out.close();
            System.out.println("文件创建成功！");
        } catch (java.io.IOException e) {
            throw new RuntimeException(e);
        }
    }
}
